/**
 * 获取试题类型
 * @param {*} data 
 */
const typeList = {
    'T': '判断题',
    'R': '单选题',
    'M': '多选题',
    // 'M': '不定项选题',
    'F': '填空题',
    'A': '问答题',
}
const level = [{
    value: '1',
    label: '易'
}, {
    value: '2',
    label: '较易'
}, {
    value: '3',
    label: '中等'
}, {
    value: '4',
    label: '较难'
}, {
    value: '5',
    label: '难'
}]
export const getType = (type) => {
    return typeList[type] || '—'
}
export const getLevel = (type) => {
    let current = level.find(e => e.value === type)
    return current ? current.label : '—'
}
